{extends file="../home.html"}
{block name="title"}{$head_title}{/block}
{block name="css"}
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/sama_part2.css">
<link href="__PUBLIC__/Css/front/css/zhonchou_home.css?version={$version}" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version={$version}"/>
<style type="text/css">
	.home_item{
		position: relative;
		top:0.05rem;
		padding: 0.75rem 0.6rem 0.65rem;
		background: #fff;
		border-bottom: 1px solid #EFEFEF;
	}
	#load_wrapper{
		margin-top: 2.2rem;
	}
	.home_item li img{
		height: 5.7rem;
		border-radius: 0;
	}
	.imgbox li img{
		width: 110%;
		height: 110%;
		display: block;
		margin:-5% -5% -5% -5%;
	}
</style>
{/block}
{block name="content"}
<div class="his_concern">
	
	<div class="go_back"></div>
	<p><strong>{$head_title}</strong></p>
</div>


	{if !$collect_list}
<!--没有收藏时-->
 <div class="no_concern" style="height:31.1rem;">
	<img class="his_detail_icon" src="/Public/Images/front/front_img/icon_noshoucang_personal@3x.png">
	<p class="his_detail_word">你还没有收藏的帖子，快戳我吃安利</p>
</div>
    {else}

<div id="load_wrapper">
	<div id="scroller">
		<!--<div id="pullDown">
		    <span class="pullDownIcon"></span>
		</div>-->
		<div class="home_list" id='new_list'>
			{foreach from=$collect_list item=v}
			<div class="home_item">
				<div class="user_info clearfix">
					<a href="/FrontUserCenter/others_space/user_id/{$v.post_user.user_id}" class="avatar native_go">
						<img src="{$v.post_user.headimgurl}?imageView2/1/w/200/h/200/imageslim" alt="">
					</a>
					<div class="user_cont">
						<span class="nickname native_go" data-url="/FrontUserCenter/others_space/user_id/{$v.post_user.user_id}">{$v.post_user.nickname}</span>
						{foreach from=$v.post_user_title item=title}
						<i class="tag" style="background-color: {$title.title_color}">{$title.title_name}</i>
						{/foreach}
					</div>
				</div>
				<!-- 点击文字和图片跳转到详情页 -->
				<a href="/FrontChannel/post_detail/post_id/{$v.post_id}" class="native_go">
					<div class="item_title"> 
						{$v.title}
					</div>
					<div class="item_desc">
						{$v.content}
					</div>
					<ul class="imgbox clearfix">
						{foreach from=$v.imgs item=img key=k}
						{if $k < 5}
						<li {if !$img.is_show}class="blur"{/if}>
						<img src="{$img.img}?imageView2/1/w/200/h/200/imageslim" alt="">
						</li>
						{else}
						<li {if !$img.is_show}class="blur"{/if}>
						<div class="mask">
							<div class="txt">包含共{$v.img_count}张图</div>
						</div>
						<img src="{$img.img}?imageView2/1/w/200/h/200/imageslim" alt="">
						</li>
						{/if}
						{/foreach}
					</ul>
					<div class="item_bot clearfix">
						<span class="time fl">{$v.addtime}</span>
						<span class="time fl">{$v.channel_name}</span>
						<span class="time fr">评论 {$v.comment_num}</span>
						<span class="time fr">查看 {$v.clickdot}</span>
					</div>
					<!--{if $v.post_type == PostModel::NORMAL}&lt;!&ndash; 普通贴&ndash;&gt;
					<div class="item_bot clearfix">
						<span class="time fl">{$v.addtime}</span>
						<span class="time fl">{$v.channel_name}</span>
						<span class="time fr">评论&nbsp;{$v.comment_num}</span>
						<span class="time fr">查看&nbsp;{$v.clickdot}</span>
					</div>
					&lt;!&ndash;<div class="item_bot clearfix">&ndash;&gt;
					&lt;!&ndash;<span class="time fl">{$v.addtime}</span>&ndash;&gt;
					&lt;!&ndash;<span class="channel fl">{$channel.channel_name}</span>&ndash;&gt;
					&lt;!&ndash;<span class="fr pl">评论&nbsp;{$v.comment_num}</span>&ndash;&gt;
					&lt;!&ndash;<span class="fr see">查看&nbsp;{$v.clickdot}</span>&ndash;&gt;
					&lt;!&ndash;</div>&ndash;&gt;
					{elseif  $v.post_type == PostModel::PRAISE}&lt;!&ndash; 赞赏贴 &ndash;&gt;
					<div class="item_bot clearfix">
						<span class="time fl">{$v.addtime}</span>
						<span class="time fl">查看&nbsp;{$v.clickdot}</span><span class="time fl">评论&nbsp;{$v.comment_num}</span>
						<span class="price fr">赞赏价：¥{$v.praise_price}</span>
						<span class="wan fr">{$v.avg_score}分</span>
					</div>
					&lt;!&ndash;<div class="item_bot clearfix">&ndash;&gt;
					&lt;!&ndash;<span class="time fl">{$v.addtime}</span>&ndash;&gt;
					&lt;!&ndash;<span class="fl see">查看&nbsp;{$v.clickdot}</span>&ndash;&gt;
					&lt;!&ndash;<span class="fl pl">评论&nbsp;{$v.comment_num}</span>&ndash;&gt;
					&lt;!&ndash;<span class="price fr">赞赏价：¥{$v.praise_price}</span>&ndash;&gt;
					&lt;!&ndash;<span class="fen fr">{$v.avg_score}分</span>&ndash;&gt;
					&lt;!&ndash;</div>&ndash;&gt;
					{elseif $v.post_type == PostModel::REWARD}&lt;!&ndash; 悬赏贴 &ndash;&gt;
					<div class="item_bot clearfix">
						<span class="time fl">13:40</span>
						<span class="time fl">查看 918</span><span class="time fl">评论 12</span>
						<span class="price fr">悬赏价：¥10</span>
					</div>
					{elseif $v.post_type == PostModel::CROWDFUNDING}&lt;!&ndash; 心愿贴 &ndash;&gt;
					<div class="item_bot clearfix">
						<span class="time fl">13:40</span>
						<span class="price fr">心愿价：¥1000</span>
						<span class="wan fr">已完成80%</span>
					</div>
					{/if}-->
				</a>
			</div>
			{/foreach}
			
		</div>
		<div id="pullUp">
			<span class="pullUpIcon"></span><span class="pullUpLabel">上拉加载...</span>
		</div>
		</div>
	</div>
{/if}

{/block}
{block name="js"}
<script type="text/javascript" src="__PUBLIC__/Js/front/iscroll.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/front/front_js/my_collection.js"></script>
<script>
	var total = parseInt('{$total}')
	var firstRow =  parseInt('{$firstRow}')
</script>
{literal}
<script type="text/javascript">

	var home_banner = new Swiper('.home_banner',{
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay: 2000,//可选选项，自动滑动
    })

	$(function(){
		var imgw = $('.imgbox li').width();
		imgh = $('.imgbox li').height(imgw);

		// 百分比
		$('.line-inner').width($('.line-inner').attr("data-width")+"%")
	})


	




</script>
{/literal}
{/block}